const API_DOMAIN = /\.(com|net|org|cn)$/i.test(location.hostname)
  ? location.hostname
  // : "qmyx.ruthus.com";
  // : "jbzytj.quanc.com.cn";
// : "ttrushi.com";
// :"yqjisu.ttrushi.com"; //bgy活动
: "henduoke.ttrushi.com";
// const API_URL = `https://${API_DOMAIN}/qc-webapp/wxapi.do`;
const API_URL = `https://henduoke.ttrushi.com/qc-webapp/wxapi.do`; 

const API_FORUM_URL = `https://actapi.ttrsznkj.com/yq-api`;
const API_AI_FORUM_URL = `https://120.77.80.74/wx-api`;
const API_CHAT_URL = `https://wxmp.ruthus.com/api/v1` //h5聊天

// const API_FORUM_URL = `http://forum.ruthus.com/yq-bbs`;
const API_TJKEPPEL_ACT_URL=`https://actapi.ttrsznkj.com/yq-api/`; //tjkeppel生产域名
// const API_TJKEPPEL_ACT_URL=`http://actapidev.ttrsznkj.com/yq-api/`; //tjkeppel测试域名
const API_ACT_URL=`https://actapi.ttrsznkj.com/yq-api/api/activity/`;
const API_ACT_TOOLS_URL=`https://actapi.ttrsznkj.com/yq-api/api/activityTools/`;

const paramKeys = ["openid", "passport", "flag", "appid", "issubscribe"];

let OAUTH_URL = "";
let APPID = "";

//微信分享
let SHARE_TITLE = "如是工具";
let SHARE_DESC = "让营销拓客再次妙不可言";
let SHARE_TIMELINE_TITLE = "";
let SHARE_LINK = "";
let SHARE_API = "";
let SHARE_IMG_URL = "http://img.ruthus.com/activies/ncjg-assistance/phone.png";
let FORUM_PLATE_DATA = null;
let SHARE_CALLBACK_OK = function () { };

// const GLOBAL_BASE_PATH = "/act/hcact";
// const GLOBAL_BASE_PATH = "/act/jbact";
// const GLOBAL_BASE_PATH = "/act/keppel";
// const GLOBAL_BASE_PATH = "/act/bgyact";
// const GLOBAL_BASE_PATH = "/act/keppel";
// const GLOBAL_BASE_PATH="/act/zdfzh";//中鼎房展会
// const GLOBAL_BASE_PATH = "/act/aiassistant"; //ai助理
// const GLOBAL_BASE_PATH = "/act/gzldact"; //赣州绿地
// const GLOBAL_BASE_PATH = "/act/tjkeppel";//天津吉宝
// const GLOBAL_BASE_PATH = "/act/jxbgy";//天津吉宝
const GLOBAL_BASE_PATH = "/act/manycustomers";//很多客


const FAKE_DATA = {
  qmyx_hope: {
    // hope
    openid: "oj3y9wGThdLqhn0bZWOj7DeO2Tww",
    passport: "b4de197ab7b03e9d014116821e90d54f",
    flag: 1,
    issubscribe: 1
  },
  qmyx_lgh: {
    // lgh
    openid: "oj3y9wEEApUowGz0hUDx4hbnpHOI",
    passport: "9c453d72980d48face345308b0202fe7",
    flag: 1,
    issubscribe: 1
  },
  jbzytj_hope: {
    openid: 'ou0QXxD1X1fENyHSAz_jwDB_6sY4', passport: '5bffe7457ccc58b47e6785a80dfd802c',
    flag: 1,
    issubscribe: 1
  }
};

export default {
  API_DOMAIN,
  API_URL,
  paramKeys,
  OAUTH_URL,
  APPID,
  FAKE_DATA,
  SHARE_TITLE,
  SHARE_DESC,
  SHARE_TIMELINE_TITLE,
  SHARE_LINK,
  SHARE_API,
  SHARE_IMG_URL,
  SHARE_CALLBACK_OK,
  API_FORUM_URL,
  FORUM_PLATE_DATA,
  GLOBAL_BASE_PATH,
  API_ACT_URL,
  API_ACT_TOOLS_URL,
  API_AI_FORUM_URL,
  API_TJKEPPEL_ACT_URL,
  API_CHAT_URL
};
